<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3" xmlns:head="http://www.w3.org/1999/html">
<head th:include="public/public_css::public_css ('码盘')"/>

<body style="background-color: #f2f2f2;">
<div class="layui-fluid larry-wrapper">
    <div class="layui-card">
        <div class="layui-row layui-col-space30">
            <div class="layui-col-xs24">
                <form class="layui-form layui-card-header  layui-card-header-auto" id="searchForm">
                    <div class="layui-inline">
                        <label class="layui-form-label">名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" id="gysmc" name="gysmc" placeholder="供应商名称"/>
                        </div>
                    </div>

                    <div class="layui-inline">
                        <label class="layui-form-label">ASN编号</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" id="asnbh" name="asnbh" placeholder="ASN编号"/>
                        </div>
                    </div>

                    <div class="layui-inline">
                        <label class="layui-form-label">PO编号</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" id="dycgdbh" name="dycgdbh" placeholder="关联PO编号"/>
                        </div>
                    </div>




                    <div class="layui-inline">
                        <label class="layui-form-label">创建时间开始</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" id="cjsj_start" name="cjsj_start" placeholder="yyyy-MM-dd HH:mm:ss"/>
                        </div>

                    </div>

                    <div class="layui-inline">
                        <label class="layui-form-label">创建时间结束</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" id="cjsj_end" name="cjsj_end" placeholder="yyyy-MM-dd HH:mm:ss"/>
                        </div>

                    </div>




                    <div class="moreSearch" style="display: none">
                    <div class="layui-inline">
                        <label class="layui-form-label">打印时间开始</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" id="dysj" name="dysj_start" placeholder="yyyy-MM-dd HH:mm:ss"/>
                        </div>

                    </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">打印时间结束</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input" id="dysj_start" name="dysj_end" placeholder="yyyy-MM-dd HH:mm:ss"/>
                                </div>

                            </div>


                    <div class="layui-inline">
                        <label class="layui-form-label">码盘状态</label>

                        <select name="mp" id="mpSelect" lay-search>
                        </select>
                    </div>



                    <div class="layui-inline">
                        <label class="layui-form-label">打印状态</label>

                        <select name="dy" id="dySelect" lay-search>
                        </select>
                    </div>
                    </div>

                    <div class="layui-inline inline-search-btn">
                        <a class="layui-btn layui-btn-normal" data-type="reload">查询</a>
                    </div>

                    <div class="layui-inline inline-reset-btn">
                        <button type="reset" class="layui-btn layui-btn-primary" style="background-color: #40AFFE">重置</button>
                    </div>
                </form>
                <div class="moreBtn"><i class="layui-icon layui-icon-triangle-d" style="color: #1E9FFF;"></i></div>
                <div class="group-button" id="toolbar">
                    <!--<a class="layui-btn layui-btn-sm layui-btn-normal " id="load">-->
                                          <!--<i class="layui-icon">&#x1005;</i> 导出-->
                    <!--</a>-->
                    <!-- Single button -->
                    <div class="btn-group">
                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"
                                aria-haspopup="true" aria-expanded="false">
                            多选操作 <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu">
                            <li><a id="btn_duomapan" href="#">多选码盘</a></li>
                            <li><a id="btn_quxiao" href="#">取消码盘</a></li>
                            <li><a id="btn_dy" href="#">多选打印</a></li>
                        </ul>
                    </div>
                </div>
                <!--列表-->
                <section class="panel panel-padding layui-card-body">
                    <div class="pro">
                        <table id="table"></table>
                    </div>
                </section>
            </div>
        </div>
    </div>
</div>

</body>


<div th:include="/public/public_js::public_js"></div>
<style type="text/css">
    .moreBtn {
        width: 50px;
        height: 20px;
        text-align: center;
        color: #fff;
        line-height: 20px;
        background-color: #eee;
        position: relative;
        margin: 0 auto;
        cursor: pointer;
    }

    .moreBtn:before {
        content: '';
        display: block;
        width: 35px;
        height: 20px;
        position: absolute;
        transform: skewX(30deg);
        background: #eee;
        border-top-left-radius: 8px;
        left: -20px;
        top: 0;
    }

    .moreBtn:after {
        content: '';
        display: block;
        width: 35px;
        height: 20px;
        position: absolute;
        transform: skewX(-30deg);
        background: #eee;
        border-top-right-radius: 8px;
        top: 0;
        right: -20px;
    }
</style>
<script>


    $(function () {
        $(".moreBtn").on("click",function () {
            $(".moreSearch").toggle();
        });
        $("#load").on("click",function(){

            var  ids ;
           // console.log(123);
           //  var $rows = $table.bootstrapTable('getSelections');
           //  if ($rows.length == 1) {
           //      var ids = $.map($rows, function (row) {
           //          return row.id;
           //      })
           //  }

            var xhr = new XMLHttpRequest();
            xhr.open("POST", "http://localhost:9191/zxbzwms/reports/getstockout", true);
            xhr.responseType = "blob";
            xhr.setRequestHeader('Accept', 'application/json');
            xhr.setRequestHeader('Content-Type', 'application/json');
            xhr.setRequestHeader('Charset', 'utf-8');
            xhr.onload = function() {
                if (this.status == 200) {
                    var name = xhr.getResponseHeader("Content-disposition");
                    name=decodeURI(name);
                    var filename = name.substring(20,name.length);
                    var blob = new Blob([xhr.response], {type: 'text/xls'});
                    var csvUrl = URL.createObjectURL(blob);
                    var link = document.createElement('a');
                    link.href = csvUrl;
                    link.download = filename;
                    link.click();
                }
            };
            xhr.send(JSON.stringify({
                "ids": [ids]
            }));

        })
    });

    layui.use(['list', 'layer', 'zzpUtils', 'jquery', 'laydate'], function () {

        window.operateEvent = {
            "click #btn_mp": function (e, value, row, index) {//码盘
                editDialog(row.id);
            },
            "click #btn_mx": function (e, value, row, index) {//明细
                dyDialog(row.id);
            },
            "click #dy": function (e, value, row, index) {//打印按钮
                ddDialog(row.id);
            },
            "click #btn_qx": function (e, value, row, index) {//取消码盘按钮
                qxDialog(row.id);
            },
            "click #dy": function (e, value, row, index) {//取消码盘按钮
                printDialog(row.id);
            },
            // "click #btn_xq": function (e, value, row, index) {//查看行详情
            //     btn_xq(row.id);
            // }
        }




        var zzpUtils = layui.zzpUtils,
            $ = layui.jquery,
            laydate = layui.laydate;

        //码盘操作
        function editDialog(id) {
            // alert(id);
                var ids=[];
                ids.push(id);
                zzpUtils.confirm("您将对选择的订单进行码盘", function (index) {
                    zzpUtils.action({
                        url: "/wmspalletsorting/add",
                        data: JSON.stringify({ids:ids}),
                        success: function (data) {
                            setTimeout(function () {
                                layer.msg(data.title);
                            }, 500);
                            zzpUtils.refreshTable("#table");
                        }, error: function (xhr, textStatus) {
                            console.log(textStatus);
                            console.log(xhr)
                        }
                    });
                });


        }



        // 明细查询码盘后数据明细
        function dyDialog(id) {
            zzpUtils.dialog({
                title: "",
                type: 2,
                content: "/mapan/detailMapan?id=" + id,
                area: ['90%', '75%'], //设置dialog大小，也可以不设置，
                end: function () {//修改成功后刷新
                    zzpUtils.refreshTable("#table");
                }
            });
        }

        //右侧打印按钮
        function ddDialog(id) {
            var ids = [];
            ids.push(id);
            zzpUtils.confirm("您将打印码盘信息!", function (index) {
                zzpUtils.action({
                    url: "/wmspalletsorting/dySelecttp",
                    data: JSON.stringify({ids: ids}),
                    success: function (data) {
                        setTimeout(function () {
                            layer.msg(data.title);
                        }, 500);
                        zzpUtils.refreshTable("#table");
                    }, error: function (xhr, textStatus) {
                        console.log(textStatus);
                        console.log(xhr)
                    }
                })
            })
            return false;
        }

        //右侧取消码盘按钮
        function qxDialog(id) {
            var ids = [];
            ids.push(id);
            zzpUtils.confirm("您将选择的码盘信息进行取消码盘的操作!", function (index) {
                zzpUtils.action({
                    url: "/wmspalletsorting/delete",
                    data: JSON.stringify({ids: ids}),
                    success: function (data) {
                        setTimeout(function () {
                            layer.msg(data.title);
                        }, 500);
                        zzpUtils.refreshTable("#table");
                    }, error: function (xhr, textStatus) {
                        console.log(textStatus);
                        console.log(xhr)
                    }
                })
            })
            return false;
        }


        //查询字典表中的数据 码盘状态
        zzpUtils.select({
           elem:"#mpSelect",    //dom
            url:"/sysdictionary/getSysdictionary/wms_estimated_arrival_order_mpzt"
            //路径 以"/"开头，后边正常字典路径
        });
        //查询字典表中的数据 打印状态
        zzpUtils.select({
           elem:"#dySelect",    //dom
            url:"/sysdictionary/getSysdictionary/wms_estimated_arrival_show_dyzt"
            //路径 以"/"开头，后边正常字典路径
        });


        //创建开始时间
        laydate.render({
            elem: '#cjsj_start'
            , theme: '#20a0ff',
            // range:true
        })
        //创建结束时间
        laydate.render({
            elem: '#cjsj_end'
            , theme: '#20a0ff',
            // range:true
        })

        //打印开始时间
        laydate.render({
            elem: '#dysj_start'
            , theme: '#20a0ff',
            // range:true
        })
        //打印结束时间
        laydate.render({
            elem: '#dysj_end'
            , theme: '#20a0ff',
            // range:true
        })
        var $table = zzpUtils.table({
            elem: '#table',
            isApi: true,
            pagination: true,
            url: '/wmspalletsorting/list',
            columns: [{
                field: '',
                checkbox: true
            }, {
                field: 'ckmc',
                title: '仓库'
            }, {
                field: 'hzmc',
                title: '货主'
            }, {
                field: 'asnbh',
                title: 'ASN编号'
            },{
                field: 'asnlx',
                title: 'ASN类型'
            },{
                field: 'show_asnzt',
                title: 'ASN状态'
            }, {
                field: 'yxj',
                title: '优先级'
            },{
                field: 'yjdhsjks',
                title: '预计到货开始'
            },{
                field: 'yjdhsjjs',
                title: '预计到货结束'
            },{
                field: 'cjsj',
                title: '创建时间'
            },{
                field: 'show_shzt',
                title: '审核状态'
            },{
                field: 'zdr',
                title: '制单人'
            },{
                field: 'ddshr',
                title: '审核人'
            },{
                field: 'show_dyzt',
                title: '打印状态'
            },{
                field: 'gysmc',
                title: '供应商名称'
            },{
                field: 'show_mpzt',
                title: '码盘状态'
            },
                {
                field: 'caozuo',
                title: '',
                events: operateEvent,
                formatter: operateFormatter
            }],
            queryParams: function () {//查询条件
                return zzpUtils.getFormJson($("#searchForm"));
            },
            detailFormatter: function (index, row) {
                return "这里就没有确定过11";
            },
            onDblClickRow:function ( row,index) {/*双击行展示详情*/
                btn_cha(row.id);
            }
        });

        /*表格右侧按钮*/
        function operateFormatter(value, row, index) {
            return [
                /*'<a class="layui-btn layui-btn-xs" id="editRow">修改</a>',*/
             /*   '<a class="layui-btn layui-btn-primary layui-btn-xs" id="btn_qi"  >启用</a>',

                '<a class="layui-btn layui-btn-danger layui-btn-xs" id="btn_jin" >禁用</a>'*/
            ].join('')

        }

        /*表格右侧按钮*/
        function operateFormatter(value, row, index) {
            if (row.mpzt == 0 && row.asnzt==0 && row.shzt==1 ) {//0.显示码盘按钮
                return [
                    '<a class="layui-btn layui-btn-xs" id="btn_mp">码盘</a>',
                ].join('')
            } else if( row.mpzt==1 ) {//已码盘 显示明细和取消码盘按钮
                return [
                    '<a class="layui-btn layui-btn-warm layui-btn-xs" id="btn_mx">明细</a>',
                    '<a class="layui-btn layui-btn-danger layui-btn-xs" id="btn_qx">取消码盘</a>',
                    '<a class="layui-btn layui-btn-normal layui-btn-xs" id="dy">打印</a>',
                    // '<a class="layui-btn layui-btn-warm layui-btn-xs" id="btn_xq">详情</a>'

                ].join('')
            }else if(row.asnzt==2){//完全收货
                return [
                    '<a class="layui-btn layui-btn-normal layui-btn-xs" id="dy">打印</a>',
                    // '<a class="layui-btn layui-btn-warm layui-btn-xs" id="btn_xq">详情</a>'

                ].join('')
            }
        }


        //查询
        $(".inline-search-btn").on('click', function () {
            zzpUtils.refreshTable("#table");
        })


        //右侧按钮取消码盘
        $("#btn_qx").on('click', function () {

            var ids = [];
            ids.push(id);
            zzpUtils.confirm("您将选择的码盘信息进行取消码盘的操作", function (index) {
                zzpUtils.action({
                    url: "/wmspalletsorting/delete" ,
                    data: JSON.stringify({ids:ids}),
                    success: function (data) {
                        setTimeout(function () {
                            layer.msg(data.title);
                        }, 500);
                        zzpUtils.refreshTable("#table");
                    }, error: function (xhr, textStatus) {
                        console.log(textStatus);
                        console.log(xhr)
                    }
                })
            })
            return false;


        }) ;
        /*顶部按钮多选取消码盘*/
        $("#btn_quxiao").on('click', function () {
            var index = 0;
            var $rows = $table.bootstrapTable('getSelections');
                //判断选中是否有已码盘
                for (var i = 0; i < $rows.length; i++) {
                    if ($rows[i].mpzt == 1 ) {
                        // alert($rows[i].mpzt)
                        index++;
                    }
                }
                if (index < 0) {
                    layer.msg("您选择的订单有未码盘的，请重选！");
                } else if ($rows.length == 0) {
                    layer.msg("您还未选择，请您至少选择一个!");
                } else {
                    var ids = $.map($rows, function (row) {
                        return row.id;
                    })
                    zzpUtils.confirm("您将选择的码盘信息进行取消码盘的操作", function (index) {
                        zzpUtils.action({
                            url: "/wmspalletsorting/delete",
                            data: JSON.stringify({ids:ids}),
                            success: function (data) {
                                setTimeout(function () {
                                    layer.msg(data.title);
                                }, 500);
                                zzpUtils.refreshTable("#table");
                            }, error: function (xhr, textStatus) {
                                console.log(textStatus);
                                console.log(xhr)
                            }
                        })
                    })
                    return false;
                }

        }) ;

        /*顶部按钮多选码盘*/
        $("#btn_duomapan").on('click', function () {
            var index = 0;
            var $rows = $table.bootstrapTable('getSelections');

                //判断选中是否有已码盘
                for (var i = 0; i < $rows.length; i++) {
                    if ($rows[i].mpzt == 1 ) {
                        alert($rows[i].mpzt)
                        index++;
                    }
                }
                if (index > 0) {
                    layer.msg("您选择的订单有已码盘的，请重选！");
                } else if ($rows.length == 0) {
                    layer.msg("请选择一条订单进行码盘");
                } else {
                    var ids = $.map($rows, function (row) {
                        return row.id;
                    })
                    zzpUtils.confirm("您将选择的订单进行码盘", function (index) {
                        zzpUtils.action({
                            url: "/wmspalletsorting/add",
                            data: JSON.stringify({ids:ids}),
                            success: function (data) {
                                setTimeout(function () {
                                    layer.msg(data.title);
                                }, 500);
                                zzpUtils.refreshTable("#table");
                            }, error: function (xhr, textStatus) {
                                console.log(textStatus);
                                console.log(xhr)
                            }
                        })
                    })
                    return false;
                }

        });

        //顶部按钮多选打印
        $("#btn_dy").on('click', function () {
            var $rows = $table.bootstrapTable('getSelections');
            if ($rows.length > 0) {
                var ids = $.map($rows, function (row) {
                    return row.id;
                })
                zzpUtils.confirm("您将打印码盘信息", function (index) {
                    zzpUtils.action({
                        url: "/wmspalletsorting/dySelecttp" ,
                        data: JSON.stringify({ids:ids}),
                        success: function (data) {
                            if(data.title=='码盘信息打印失败'){
                                setTimeout(function () {
                                    layer.msg(data.message);
                                }, 500);
                            }else{
                                var LODOP=getLodop();
                                LODOP.PRINT_INIT('打印码盘信息');
                                for(var i=0;i<data.rows.length;i++){
                                    var oDate = new Date(); //实例一个时间对象；
                                    var time=oDate.getFullYear()+'-'+(oDate.getMonth()+1)+'-'+oDate.getDate()+' '+oDate.getHours()+':'+oDate.getMinutes()+':'+oDate.getSeconds();
                                    LODOP.ADD_PRINT_TEXT(28,34,270,30,time);
                                    LODOP.SET_PRINT_STYLEA(0, 'FontSize', 13);
                                    LODOP.ADD_PRINT_BARCODE(48,34,270,47,"EAN128B",data.rows[i].asnbh);
                                    LODOP.ADD_PRINT_TEXT(110,34,100,30,"货品编号");
                                    LODOP.ADD_PRINT_TEXT(110,100,307,30,data.rows[i].bh);
                                    LODOP.ADD_PRINT_TEXT(140,34,100,30,"货品名称");
                                    LODOP.ADD_PRINT_TEXT(140,100,307,30,data.rows[i].mc);
                                    LODOP.ADD_PRINT_TEXT(170,34,100,30,"供应商");
                                    LODOP.ADD_PRINT_TEXT(170,100,307,30,data.rows[i].gys);
                                    LODOP.ADD_PRINT_TEXT(200,34,100,30,"生产日期");
                                    LODOP.ADD_PRINT_TEXT(200,100,307,30,data.rows[i].scrq);
                                    LODOP.ADD_PRINT_BARCODE(210,180,190,40,"EAN128B",data.rows[i].lpn);
                                    LODOP.ADD_PRINT_TEXT(255,34,307,30,"货品批号");
                                    LODOP.ADD_PRINT_TEXT(255,100,307,30,data.rows[i].hppc);
                                    if(i>=0){
                                        LODOP.NewPage();//分页
                                    }
                                }
                            }
                            LODOP.PREVIEW();
                        }, error: function (xhr, textStatus) {
                            console.log(textStatus);
                            console.log(xhr)
                        }
                    })
                })
            } else {
                layer.msg("请选择一条进行打印");
            }
        });


        // //表格右侧打印按钮
        // $("#dy").on('click', function () {
        //     var ids = [];
        //     ids.push(id);
        //     zzpUtils.confirm("您将打印选择的订单", function (index) {
        //         zzpUtils.action({
        //             url: "/wmspalletsorting/dySelecttp" ,
        //             data: JSON.stringify({ids:ids}),
        //             success: function (data) {
        //
        //                 if(data.title=='码盘信息打印失败'){
        //                     setTimeout(function () {
        //                         layer.msg(data.message);
        //                     }, 500);
        //                 }else{
        //
        //                     var LODOP=getLodop();
        //                     LODOP.PRINT_INIT('打印码盘信息');
        //                     for(var i=0;i<data.rows.length;i++){
        //                         var oDate = new Date(); //实例一个时间对象；
        //                         var time=oDate.getFullYear()+'-'+(oDate.getMonth()+1)+'-'+oDate.getDate()+' '+oDate.getHours()+':'+oDate.getMinutes()+':'+oDate.getSeconds();
        //                         LODOP.ADD_PRINT_TEXT(28,34,270,30,time);
        //                         LODOP.SET_PRINT_STYLEA(0, 'FontSize', 13);
        //                         LODOP.ADD_PRINT_BARCODE(48,34,270,47,"EAN128B",data.rows[i].asnbh);
        //                         LODOP.ADD_PRINT_TEXT(110,34,100,30,"货品编号");
        //                         LODOP.ADD_PRINT_TEXT(110,100,307,30,data.rows[i].bh);
        //                         LODOP.ADD_PRINT_TEXT(140,34,100,30,"货品名称");
        //                         LODOP.ADD_PRINT_TEXT(140,100,307,30,data.rows[i].mc);
        //                         LODOP.ADD_PRINT_TEXT(170,34,100,30,"供应商");
        //                         LODOP.ADD_PRINT_TEXT(170,100,307,30,data.rows[i].gys);
        //                         LODOP.ADD_PRINT_TEXT(200,34,100,30,"生产日期");
        //                         LODOP.ADD_PRINT_TEXT(200,100,307,30,data.rows[i].scrq);
        //                         LODOP.ADD_PRINT_BARCODE(210,180,190,40,"EAN128B",data.rows[i].lpn);
        //                         LODOP.ADD_PRINT_TEXT(255,34,307,30,"货品批号");
        //                         LODOP.ADD_PRINT_TEXT(255,100,307,30,data.rows[i].hppc);
        //                         if(i>=0){
        //                             LODOP.NewPage();//分页
        //                         }
        //                     }
        //                 }
        //                 LODOP.PREVIEW();
        //
        //             }, error: function (xhr, textStatus) {
        //                 console.log(textStatus);
        //                 console.log(xhr)
        //             }
        //         })
        //     })
        //     return false;
        //
        // });

        /*右侧打印*/
        function printDialog(id){
            var ids=[];
            ids.push(id);
            zzpUtils.confirm("您将打印码盘信息", function (index) {
                zzpUtils.action({
                    url: "/wmspalletsorting/dySelecttp" ,
                    data: JSON.stringify({ids:ids}),
                    success: function (data) {
                        if(data.title=='码盘明细打印失败'){
                            setTimeout(function () {
                                layer.msg(data.message);
                            }, 500);
                        }else{
                            var LODOP=getLodop();
                            LODOP.PRINT_INIT('打印码盘信息');
                            for(var i=0;i<data.rows.length;i++){
                                var oDate = new Date(); //实例一个时间对象；
                                var time=oDate.getFullYear()+'-'+(oDate.getMonth()+1)+'-'+oDate.getDate()+' '+oDate.getHours()+':'+oDate.getMinutes()+':'+oDate.getSeconds();
                                LODOP.ADD_PRINT_TEXT(28,34,270,30,time);
                                LODOP.SET_PRINT_STYLEA(0, 'FontSize', 13);
                                LODOP.ADD_PRINT_BARCODE(48,34,270,47,"EAN128B",data.rows[i].asnbh);
                                LODOP.ADD_PRINT_TEXT(110,34,100,30,"货品编号");
                                LODOP.ADD_PRINT_TEXT(110,100,307,30,data.rows[i].bh);
                                LODOP.ADD_PRINT_TEXT(140,34,100,30,"货品名称");
                                LODOP.ADD_PRINT_TEXT(140,100,307,30,data.rows[i].mc);
                                LODOP.ADD_PRINT_TEXT(170,34,100,30,"供应商");
                                LODOP.ADD_PRINT_TEXT(170,100,307,30,data.rows[i].gys);
                                LODOP.ADD_PRINT_TEXT(200,34,100,30,"生产日期");
                                LODOP.ADD_PRINT_TEXT(200,100,307,30,data.rows[i].scrq);
                                LODOP.ADD_PRINT_BARCODE(210,180,190,40,"EAN128B",data.rows[i].lpn);
                                LODOP.ADD_PRINT_TEXT(255,34,307,30,"货品批号");
                                LODOP.ADD_PRINT_TEXT(255,100,307,30,data.rows[i].hppc);
                                if(i>=0){
                                    LODOP.NewPage();//分页
                                }
                            }
                        }
                        LODOP.PREVIEW();
                    }, error: function (xhr, textStatus) {
                        console.log(textStatus);
                        console.log(xhr)
                    }
                })
            })
        };
    });





    /*双击查看详情*/
    // function btn_xq(id) {
    //     alert(id)
    //     var zzpUtils = layui.zzpUtils,
    //         $ = layui.jquery,
    //         laydate = layui.laydate;
    //     zzpUtils.dialog({
    //         title: "码盘详情",
    //         type: 2,
    //         content: "/mapan/toChakanMp?id=" + id,
    //         area: ['80%', '80%'], //设置dialog大小，也可以不设置，
    //     });
    // }
</script>
</html>